package com.cat.Command;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cat
 * @version 2025/5/27 09:42
 * @description 具体命令类
 * @since JDK17
 */

public class Order {
    // 餐桌号码
    private int diningTable;
    // 所下的餐品及份数
    private Map<String, Integer> foodDir = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFoodDir(String foodName, int num) {
        this.foodDir.put(foodName, num);
    }
}
